#include <stdio.h>
int main(void)
{
	int a, b, m, n;
	m = n = 1;
	scanf("%d%d", &a, &b);
	do
	{
		if (a > 0)
		{
			m = 2 * n;
			b++;
		}
		else
		{
			n = m + n;
			a += 2;
			b++;
		}
	}
	while (a == b);
	printf("m=%d n=%d", m, n);
}


